using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SkeletonAttactState : EnemyState
{
    private Enemy_Skeleton enemy;
    public SkeletonAttactState(Enemy _enemybase, EnemyStateMachine _stateMachine, string _animBoolName,Enemy_Skeleton _enemy) : base(_enemybase, _stateMachine, _animBoolName)
    {
        enemy = _enemy;
    }

    public override void Enter()
    {
        base.Enter();
        AudioManger.instance.PlaySFX(3,null);
    }

    public override void Exit()
    {
        base.Exit();
    }

    public override void Update()
    {
        base.Update();
        enemy.SetZeroVelocity();
        if (triggerCalled)
        {
            stateMachine.ChangeState(enemy.idleState);

        }

    }
}
